package com.example.javawebdemo.command;

import jakarta.servlet.http.*;

import java.io.IOException;

public class DeleteCommand implements ProductCommand {
    @Override
    public void execute(HttpServletRequest request, HttpServletResponse response)
            throws IOException {
        String productId = request.getParameter("id");
        // 执行删除操作...
        response.sendRedirect(request.getContextPath() + "/product?action=list");
    }
}